import { beforeEach } from './permission'
// import '@/assets/styles/index.scss' // global css viteConfig.js里面引入
import i18n from '@/lang/index'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import 'virtual:svg-icons-register'
import svgIcon from '@/components/SvgIcon/index.vue'
import buttomPermission from '@/directive'

import App from './App.vue'
import router from './router'

const app = createApp(App)
app.use(i18n)
app.use(buttomPermission)
app.use(createPinia())
app.component('svg-icon', svgIcon)
app.use(router)
app.use(Antd)
app.mount('#app')
beforeEach()
